package main

import (
	"log"

	"github.com/dheisomgomes/codeapi/database"
	"github.com/dheisomgomes/codeapi/server"
)

func main() {
	err := database.StartDatabase("codes.sqlite")
	if err != nil {
		log.Fatal("Error:", err)
	}
	s := server.NewServer("5000")
	s.Run()
}
